Skip to content

Conversation

@activecoder10
Copy link
Contributor

Compute transaction input for executing transactions. For this, we extracted the ABI property from the metadata property (after compilation process) and we created the parameters and the metadata that needs to be send to the deployed contract in order to execute it.

Comment on lines 56 to 57
Literal(String),
AddressRef(String), // will be "Contract.address"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be a doc-comment

Suggested change
Literal(String),
AddressRef(String), // will be "Contract.address"
Literal(String),
/// For example: `Contract.address`
AddressRef(String),

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please apply the suggestion or fix it?

Copy link
Contributor Author

@activecoder10 activecoder10 Jul 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in the new revision

Copy link
Member

@xermicus xermicus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI keeps failing, can you please make it green before we merge.

}
}
Err(err) => {
log::debug!(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this should bail out too shouldn't it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I was planning to look over all the bad condition and bail out them.

}
}
} else {
log::debug!(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in the new revision

.insert(contract_name.clone(), parsed_abi);
}
Err(err) => {
log::debug!(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also here. Although it should never happen that this doesn't parse. Please error out early.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in the new revision

Comment on lines 56 to 57
Literal(String),
AddressRef(String), // will be "Contract.address"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please apply the suggestion or fix it?

Copy link
Member

@xermicus xermicus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@activecoder10 activecoder10 added this pull request to the merge queue Jul 9, 2025
Merged via the queue into main with commit de7c7d6 Jul 9, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants